﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    enum cook
    {
        酸辣土豆丝,
        西红柿炒蛋,
        爆炒小龙虾,
        红烧猪蹄
    }
    class CookRobot : Robot
    {
        public cook cookname;
        public cook Cookname
        {
            get { return this.cookname; }
            set { this.cookname = value; }
        }
        public CookRobot(string name, cook cookname) : base(name)
        {
            this.cookname = cookname;
        }
        public CookRobot()
        {

        }
        public override void Working()
        {
            Console.WriteLine("机器人类型：{0}，菜名：{1}", base.Name, this.cookname);
        }
    }
}